import MyNavbar from "../../Share/MyNavbar";
import { getGd } from "../../request/index";
import { useEffect, useState } from "react";
function Choose() {
  const [gd, setGd] = useState<any[]>([]);
  useEffect(() => {
    getGd().then((res) => {
      console.log(res);
      setGd(res.data.city);
    });
  }, []);
  return (
    <div>
      <MyNavbar />
      <h2 style={{ margin: "10px" }}>请选择你的位置</h2>
      <p style={{ margin: "10px", color: "#aca9a9" }}>
        我们会根据你选择的位置，为你推荐好玩的景点
      </p>
      <h3 style={{ margin: "10px" }}>当前我的位置:{gd}</h3>
    </div>
  );
}

export default Choose;
